const useElectron = () => {
  return {
    spider1688: async function(url:string) {
      if (window.electronAPI) {
        return (await window.electronAPI.wdioRunner(url)) as Record<string, string>
      }
      else {
        throw new Error('请在electron环境中使用')
      }
    }
  }
}

export default useElectron;